package com.ay.shardingshere.service;

import com.ay.shardingshere.entity.Dict;
import com.ay.shardingshere.mapper.DictMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: ay
 * @Date: 2021/6/24
 * @Description:
 **/
@Service
public class DictService {

    @Autowired
    private DictMapper dictMapper;


    public void save(Dict dict){
        dictMapper.save(dict);
    }


    public List<Dict> list(){
        return dictMapper.list();
    }
}
